﻿@model Day23Movies.Models.MovieListViewModel
@{
    ViewBag.Title = "Home Page";
}

<div class="jumbotron">
    <h1>ASP.NET</h1>
    <p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
    <p><a href="http://asp.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div>

<div class="row">
    @foreach (var m in Model.Movies)
    {
        <div class="col-md-4">
            <h2>Movie Title: @m.Title</h2>
            <p><img src="@m.PosterUrl" width="250" height="350" /></p>
            <p>User: @m.UserName</p>
            <p>Rating: @m.Rating</p>
        </div>
    }
    
    <div>
        Average Rating: @Model.AverageRating
    </div>
</div>